import request from '@/utils/request'

export default {
  // GET http://localhost:8080/course-class/1
  // 根据 id 查询课程班级信息
  getInfo(courseClassId) {
    return request({
      url: '/course-class/' + courseClassId,
      method: 'get'
    })
  },
  // POST http://localhost:8080/course-class/edit
  // 修改 or 增加课程班级信息
  updateCourseClass(data) {
    return request({
      url: '/course-class/edit/',
      method: 'post',
      data
    })
  },
  // DELETE http://localhost:8080/course-class/courseClassId
  // 根据 id 删除课程班级
  deleteCourseClass(courseClassId) {
    return request({
      url: '/course-class/' + courseClassId,
      method: 'delete'
    })
  }
}

